home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / configure < prev    next >
Text File  |  1993-09-15  |  17KB  |  698 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf.
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  21. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  22. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  23. # --with-PACKAGE unless this script has special code to handle it.
  24.  
  25.  
  26. for arg
  27. do
  28.   # Handle --exec-prefix with a space before the argument.
  29.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  30.   # Handle --host with a space before the argument.
  31.   elif test x$next_host = xyes; then next_host=
  32.   # Handle --prefix with a space before the argument.
  33.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  34.   # Handle --srcdir with a space before the argument.
  35.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  36.   else
  37.     case $arg in
  38.      # For backward compatibility, also recognize exact --exec_prefix.
  39.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  40.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  41.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  42.     next_exec_prefix=yes ;;
  43.  
  44.      -gas | --gas | --ga | --g) ;;
  45.  
  46.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  47.      -host | --host | --hos | --ho | --h)
  48.     next_host=yes ;;
  49.  
  50.      -nfp | --nfp | --nf) ;;
  51.  
  52.      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  53.         no_create=1 ;;
  54.  
  55.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  56.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  57.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  58.     next_prefix=yes ;;
  59.  
  60.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  61.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  62.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  63.     next_srcdir=yes ;;
  64.  
  65.      -with-* | --with-*)
  66.        package=`echo $arg|sed 's/-*with-//'`
  67.        # Delete all the valid chars; see if any are left.
  68.        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  69.          echo "configure: $package: invalid package name" >&2; exit 1
  70.        fi
  71.        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  72.  
  73.      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  74.        verbose=yes ;;
  75.  
  76.      *) ;;
  77.     esac
  78.   fi
  79. done
  80.  
  81. trap 'rm -fr conftest* core; exit 1' 1 3 15
  82.  
  83. # NLS nuisances.
  84. # These must not be set unconditionally because not all systems understand
  85. # e.g. LANG=C (notably SCO).
  86. if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  87. if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  88.  
  89. rm -f conftest*
  90. compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  91.  
  92. # A filename unique to this package, relative to the directory that
  93. # configure is in, which we can look for to find out if srcdir is correct.
  94. unique_file=graphics.c
  95.  
  96. # Find the source files, if location was not specified.
  97. if test -z "$srcdir"; then
  98.   srcdirdefaulted=yes
  99.   # Try the directory containing this script, then `..'.
  100.   prog=$0
  101.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  102.   test "X$confdir" = "X$prog" && confdir=.
  103.   srcdir=$confdir
  104.   if test ! -r $srcdir/$unique_file; then
  105.     srcdir=..
  106.   fi
  107. fi
  108. if test ! -r $srcdir/$unique_file; then
  109.   if test x$srcdirdefaulted = xyes; then
  110.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  111.   else
  112.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  113.   fi
  114.   exit 1
  115. fi
  116. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  117. # But we can't avoid them for `..', to make subdirectories work.
  118. case $srcdir in
  119.   .|/*|~*) ;;
  120.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  121. esac
  122.  
  123. # Save the original args to write them into config.status later.
  124. configure_args="$*"
  125.  
  126.  
  127. if test -z "$CC"; then
  128.   # Extract the first word of `gcc', so it can be a program name with args.
  129.   set dummy gcc; word=$2
  130.   echo checking for $word
  131.   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  132.   for dir in $PATH; do
  133.     test -z "$dir" && dir=.
  134.     if test -f $dir/$word; then
  135.       CC="gcc"
  136.       break
  137.     fi
  138.   done
  139.   IFS="$saveifs"
  140. fi
  141. test -z "$CC" && CC="cc"
  142. test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  143.  
  144. # Find out if we are using GNU C, under whatever name.
  145. cat > conftest.c <<EOF
  146. #ifdef __GNUC__
  147.   yes
  148. #endif
  149. EOF
  150. ${CC-cc} -E conftest.c > conftest.out 2>&1
  151. if egrep yes conftest.out >/dev/null 2>&1; then
  152.   GCC=1 # For later tests.
  153. fi
  154. rm -f conftest*
  155.  
  156. # Make sure to not get the incompatible SysV /etc/install and
  157. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  158. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  159. # or the AFS install, which mishandles nonexistent args, or
  160. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  161. # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  162. # anyway.  Sigh.
  163. if test "z${INSTALL}" = "z" ; then
  164.   echo checking for install
  165.   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  166.   for dir in $PATH; do
  167.     test -z "$dir" && dir=.
  168.     case $dir in
  169.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  170.     *)
  171.       if test -f $dir/installbsd; then
  172.     INSTALL="$dir/installbsd -c" # OSF1
  173.     INSTALL_PROGRAM='$(INSTALL)'
  174.     INSTALL_DATA='$(INSTALL) -m 644'
  175.     break
  176.       fi
  177.       if test -f $dir/install; then
  178.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  179.       : # AIX
  180.     else
  181.       INSTALL="$dir/install -c"
  182.       INSTALL_PROGRAM='$(INSTALL)'
  183.       INSTALL_DATA='$(INSTALL) -m 644'
  184.       break
  185.     fi
  186.       fi
  187.       ;;
  188.     esac
  189.   done
  190.   IFS="$saveifs"
  191. fi
  192. INSTALL=${INSTALL-cp}
  193. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  194. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  195.  
  196.  
  197. # check whether --with-no-readline was given
  198. if test -n "$with_no_readline"; then
  199.   :
  200. else
  201.   
  202. {
  203. test -n "$verbose" && \
  204. echo "    defining READLINE"
  205. DEFS="$DEFS -DREADLINE=1"
  206. }
  207.  
  208. fi
  209.  
  210. # check whether --with-cwdrc was given
  211. if test -n "$with_cwdrc"; then
  212.   :
  213. else
  214.   
  215. {
  216. test -n "$verbose" && \
  217. echo "    defining NOCWDRC"
  218. DEFS="$DEFS -DNOCWDRC=1"
  219. }
  220.  
  221. fi
  222.  
  223.  
  224. # check whether --with-lasergnu was given
  225. if test -n "$with_lasergnu"; then
  226.   LASERGNU=lasergnu_install
  227. else
  228.   LASERGNU=lasergnu_noinstall
  229. fi
  230.  
  231.  
  232.  
  233.  
  234.  
  235. # If we find X, set shell vars x_includes and x_libraries to the paths.
  236. echo checking for X include and library files with xmkmf
  237. rm -fr conftestdir
  238. if mkdir conftestdir; then
  239.   cd conftestdir
  240.   cat > Imakefile <<\EOF
  241. acfindx:
  242.     @echo "x_includes=$(INCROOT); x_libraries=$(USRLIBDIR)"
  243. EOF
  244.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  245.     eval `make acfindx`
  246.   fi
  247.   cd ..
  248.   rm -fr conftestdir
  249. fi
  250.  
  251. if test -z "$x_includes" || test -z "$x_libraries"; then
  252.   X_INCLUDES= X_LIBRARIES= PROGS=
  253. else
  254.   X_INCLUDES="-I$x_includes" X_LIBRARIES="-L$x_libraries -lX11"
  255.   PROGS=gnuplot_x11
  256.   
  257. {
  258. test -n "$verbose" && \
  259. echo "    defining X11"
  260. DEFS="$DEFS -DX11=1"
  261. }
  262.  
  263. fi
  264.  
  265. echo checking for NeXT
  266. echo checking how to run the C preprocessor
  267. if test -z "$CPP"; then
  268.   # This must be in double quotes, not single quotes, because CPP may get
  269.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  270.   # make.  It must be expanded now.
  271.   CPP="${CC-cc} -E"
  272.   cat > conftest.c <<EOF
  273. #include <stdio.h>
  274. Syntax Error
  275. EOF
  276. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  277. if test -z "$err"; then
  278.   :
  279. else
  280.   CPP=/lib/cpp
  281. fi
  282. rm -f conftest*
  283. fi
  284. test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  285.  
  286. cat > conftest.c <<EOF
  287. #ifdef __NeXT__
  288.   yes
  289. #endif
  290.  
  291. EOF
  292. eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  293. if egrep "yes" conftest.out >/dev/null 2>&1; then
  294.   
  295. {
  296. test -n "$verbose" && \
  297. echo "    defining NEXT"
  298. DEFS="$DEFS -DNEXT=1"
  299. }
  300.  
  301. {
  302. test -n "$verbose" && \
  303. echo "    defining NeXT"
  304. DEFS="$DEFS -DNeXT=1"
  305. }
  306.  
  307. fi
  308. rm -f conftest*
  309.  
  310. echo checking for OSF/1
  311. echo checking for sys/bkmac.h
  312. cat > conftest.c <<EOF
  313. #include <sys/bkmac.h>
  314. EOF
  315. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  316. if test -z "$err"; then
  317.   
  318. {
  319. test -n "$verbose" && \
  320. echo "    defining OSF1"
  321. DEFS="$DEFS -DOSF1=1"
  322. }
  323.  
  324. {
  325. test -n "$verbose" && \
  326. echo "    defining _OSF_SOURCE"
  327. DEFS="$DEFS -D_OSF_SOURCE=1"
  328. }
  329.  
  330. fi
  331. rm -f conftest*
  332.  
  333. echo checking for Solaris
  334. echo checking for libgenIO.h
  335. cat > conftest.c <<EOF
  336. #include <libgenIO.h>
  337. EOF
  338. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  339. if test -z "$err"; then
  340.   
  341. {
  342. test -n "$verbose" && \
  343. echo "    defining SOLARIS"
  344. DEFS="$DEFS -DSOLARIS=1"
  345. }
  346.  
  347. fi
  348. rm -f conftest*
  349.  
  350.  
  351. echo checking for sys/bsdtypes.h
  352. cat > conftest.c <<EOF
  353. #include <sys/bsdtypes.h>
  354. EOF
  355. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  356. if test -z "$err"; then
  357.   
  358. {
  359. test -n "$verbose" && \
  360. echo "    defining BSD_TYPES"
  361. DEFS="$DEFS -DBSD_TYPES=1"
  362. }
  363.  
  364. fi
  365. rm -f conftest*
  366.  
  367. have_hdr=
  368. echo checking for termios.h
  369. cat > conftest.c <<EOF
  370. #include <termios.h>
  371. EOF
  372. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  373. if test -z "$err"; then
  374.   
  375. {
  376. test -n "$verbose" && \
  377. echo "    defining TERMIOS"
  378. DEFS="$DEFS -DTERMIOS=1"
  379. }
  380.  have_hdr=1
  381. fi
  382. rm -f conftest*
  383.  
  384. if test -z "$have_hdr"; then
  385.   echo checking for sgtty.h
  386. cat > conftest.c <<EOF
  387. #include <sgtty.h>
  388. EOF
  389. err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  390. if test -z "$err"; then
  391.   
  392. {
  393. test -n "$verbose" && \
  394. echo "    defining SGTTY"
  395. DEFS="$DEFS -DSGTTY=1"
  396. }
  397.  
  398. fi
  399. rm -f conftest*
  400.  
  401. fi
  402.  
  403. echo checking for lgamma
  404. cat > conftest.c <<EOF
  405. #include <ctype.h>
  406. int main() { exit(0); }
  407. int t() { 
  408. /* The GNU C library defines this for functions which it implements
  409.     to always fail with ENOSYS.  Some functions are actually named
  410.     something starting with __ and the normal name is an alias.  */
  411. #if defined (__stub_lgamma) || defined (__stub___lgamma)
  412. choke me
  413. #else
  414. /* Override any gcc2 internal prototype to avoid an error.  */
  415. extern char lgamma(); lgamma();
  416. #endif
  417.  }
  418. EOF
  419. if eval $compile; then
  420.   {
  421. test -n "$verbose" && \
  422. echo "    defining GAMMA to be lgamma"
  423. DEFS="$DEFS -DGAMMA=lgamma"
  424. }
  425.  
  426. else
  427.   {
  428. test -n "$verbose" && \
  429. echo "    defining GAMMA to be gamma"
  430. DEFS="$DEFS -DGAMMA=gamma"
  431. }
  432.  
  433. fi
  434. rm -f conftest*
  435.  
  436. echo checking for getcwd
  437. cat > conftest.c <<EOF
  438. #include <ctype.h>
  439. int main() { exit(0); }
  440. int t() { 
  441. /* The GNU C library defines this for functions which it implements
  442.     to always fail with ENOSYS.  Some functions are actually named
  443.     something starting with __ and the normal name is an alias.  */
  444. #if defined (__stub_getcwd) || defined (__stub___getcwd)
  445. choke me
  446. #else
  447. /* Override any gcc2 internal prototype to avoid an error.  */
  448. extern char getcwd(); getcwd();
  449. #endif
  450.  }
  451. EOF
  452. if eval $compile; then
  453.   {
  454. test -n "$verbose" && \
  455. echo "    defining GETCWD"
  456. DEFS="$DEFS -DGETCWD=1"
  457. }
  458.  
  459. fi
  460. rm -f conftest*
  461.  
  462. echo checking for memcpy
  463. cat > conftest.c <<EOF
  464. #include <ctype.h>
  465. int main() { exit(0); }
  466. int t() { 
  467. /* The GNU C library defines this for functions which it implements
  468.     to always fail with ENOSYS.  Some functions are actually named
  469.     something starting with __ and the normal name is an alias.  */
  470. #if defined (__stub_memcpy) || defined (__stub___memcpy)
  471. choke me
  472. #else
  473. /* Override any gcc2 internal prototype to avoid an error.  */
  474. extern char memcpy(); memcpy();
  475. #endif
  476.  }
  477. EOF
  478. if eval $compile; then
  479.   {
  480. test -n "$verbose" && \
  481. echo "    defining MEMCPY"
  482. DEFS="$DEFS -DMEMCPY=1"
  483. }
  484.  
  485. fi
  486. rm -f conftest*
  487.  
  488. echo checking for memset
  489. cat > conftest.c <<EOF
  490. #include <ctype.h>
  491. int main() { exit(0); }
  492. int t() { 
  493. /* The GNU C library defines this for functions which it implements
  494.     to always fail with ENOSYS.  Some functions are actually named
  495.     something starting with __ and the normal name is an alias.  */
  496. #if defined (__stub_memset) || defined (__stub___memset)
  497. choke me
  498. #else
  499. /* Override any gcc2 internal prototype to avoid an error.  */
  500. extern char memset(); memset();
  501. #endif
  502.  }
  503. EOF
  504. if eval $compile; then
  505.   {
  506. test -n "$verbose" && \
  507. echo "    defining MEMSET"
  508. DEFS="$DEFS -DMEMSET=1"
  509. }
  510.  
  511. fi
  512. rm -f conftest*
  513.  
  514. echo checking for setlocale
  515. cat > conftest.c <<EOF
  516. #include <ctype.h>
  517. int main() { exit(0); }
  518. int t() { 
  519. /* The GNU C library defines this for functions which it implements
  520.     to always fail with ENOSYS.  Some functions are actually named
  521.     something starting with __ and the normal name is an alias.  */
  522. #if defined (__stub_setlocale) || defined (__stub___setlocale)
  523. choke me
  524. #else
  525. /* Override any gcc2 internal prototype to avoid an error.  */
  526. extern char setlocale(); setlocale();
  527. #endif
  528.  }
  529. EOF
  530. if eval $compile; then
  531.   {
  532. test -n "$verbose" && \
  533. echo "    defining XPG3_LOCALE"
  534. DEFS="$DEFS -DXPG3_LOCALE=1"
  535. }
  536.  
  537. fi
  538. rm -f conftest*
  539.  
  540. echo checking for setlinebuf
  541. cat > conftest.c <<EOF
  542. #include <ctype.h>
  543. int main() { exit(0); }
  544. int t() { 
  545. /* The GNU C library defines this for functions which it implements
  546.     to always fail with ENOSYS.  Some functions are actually named
  547.     something starting with __ and the normal name is an alias.  */
  548. #if defined (__stub_setlinebuf) || defined (__stub___setlinebuf)
  549. choke me
  550. #else
  551. /* Override any gcc2 internal prototype to avoid an error.  */
  552. extern char setlinebuf(); setlinebuf();
  553. #endif
  554.  }
  555. EOF
  556. if eval $compile; then
  557.   {
  558. test -n "$verbose" && \
  559. echo "    defining UNIX"
  560. DEFS="$DEFS -DUNIX=1"
  561. }
  562.  
  563. fi
  564. rm -f conftest*
  565.  
  566.  
  567.  
  568. LIBS_save="${LIBS}"
  569. LIBS="${LIBS} -lsocket"
  570. have_lib=""
  571. echo checking for -lsocket
  572. cat > conftest.c <<EOF
  573.  
  574. int main() { exit(0); }
  575. int t() { main(); }
  576. EOF
  577. if eval $compile; then
  578.   have_lib="1"
  579. fi
  580. rm -f conftest*
  581. LIBS="${LIBS_save}"
  582. if test -n "${have_lib}"; then
  583.    :; LIBS="$LIBS -lsocket"
  584. else
  585.    :; 
  586. fi
  587.  
  588.  
  589.  
  590.  
  591. {
  592. test -n "$verbose" && \
  593. echo "    defining NOVFORK"
  594. DEFS="$DEFS -DNOVFORK=1"
  595. }
  596.  
  597.  
  598. {
  599. test -n "$verbose" && \
  600. echo "    defining unix"
  601. DEFS="$DEFS -Dunix=1"
  602. }
  603.  
  604.  
  605. if test -n "$prefix"; then
  606.   test -z "$exec_prefix" && exec_prefix='${prefix}'
  607.   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  608. fi
  609. if test -n "$exec_prefix"; then
  610.   prsub="$prsub
  611. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  612. fi
  613. cat >conftest.def <<EOF
  614. $DEFS
  615. EOF
  616. escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  617. DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  618. rm -f conftest.def
  619.  
  620. trap 'rm -f config.status; exit 1' 1 3 15
  621. echo creating config.status
  622. rm -f config.status
  623. cat > config.status <<EOF
  624. #!/bin/sh
  625. # Generated automatically by configure.
  626. # Run this file to recreate the current configuration.
  627. # This directory was configured as follows,
  628. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  629. #
  630. # $0 $configure_args
  631.  
  632. for arg
  633. do
  634.   case "\$arg" in
  635.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  636.     exec /bin/sh $0 $configure_args ;;
  637.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  638.   esac
  639. done
  640.  
  641. trap 'rm -f Makefile docs/Makefile docs/latextut/Makefile; exit 1' 1 3 15
  642. CC='$CC'
  643. INSTALL='$INSTALL'
  644. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  645. INSTALL_DATA='$INSTALL_DATA'
  646. LASERGNU='$LASERGNU'
  647. X_INCLUDES='$X_INCLUDES'
  648. X_LIBRARIES='$X_LIBRARIES'
  649. PROGS='$PROGS'
  650. CPP='$CPP'
  651. LIBS='$LIBS'
  652. srcdir='$srcdir'
  653. DEFS='$DEFS'
  654. prefix='$prefix'
  655. exec_prefix='$exec_prefix'
  656. prsub='$prsub'
  657. EOF
  658. cat >> config.status <<\EOF
  659.  
  660. top_srcdir=$srcdir
  661.  
  662. # Allow make-time overrides of the generated file list.
  663. test -n "$gen_files" || gen_files="Makefile docs/Makefile docs/latextut/Makefile"
  664.  
  665. for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  666.   srcdir=$top_srcdir
  667.   # Remove last slash and all that follows it.  Not all systems have dirname.
  668.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  669.   if test "$dir" != "$file"; then
  670.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  671.     test ! -d $dir && mkdir $dir
  672.   fi
  673.   echo creating $file
  674.   rm -f $file
  675.   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  676.   sed -e "
  677. $prsub
  678. s%@CC@%$CC%g
  679. s%@INSTALL@%$INSTALL%g
  680. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  681. s%@INSTALL_DATA@%$INSTALL_DATA%g
  682. s%@LASERGNU@%$LASERGNU%g
  683. s%@X_INCLUDES@%$X_INCLUDES%g
  684. s%@X_LIBRARIES@%$X_LIBRARIES%g
  685. s%@PROGS@%$PROGS%g
  686. s%@CPP@%$CPP%g
  687. s%@LIBS@%$LIBS%g
  688. s%@srcdir@%$srcdir%g
  689. s%@DEFS@%$DEFS%
  690. " $top_srcdir/${file}.in >> $file
  691. fi; done
  692.  
  693. exit 0
  694. EOF
  695. chmod +x config.status
  696. test -n "$no_create" || ./config.status
  697.  
  698.